body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8e9f0;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.container {
    position: relative; /* 设置容器为相对定位，作为唱片绝对定位的参考 */
    text-align: center;
    padding: 20px;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ff69b4;
}

p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #ff69b4;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #ff1493;
}

#petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.petal {
    position: absolute;
    width: 10px;
    height: 10px;
    background: url('flower.png') no-repeat center center;
    background-size: contain;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh);
    }
    100% {
        transform: translateY(110vh);
    }
}


#record {
    position: absolute; /* 设置唱片为绝对定位 */
    top: 0; /* 距离容器顶部为 0 */
    left: 0; /* 距离容器左侧为 0 */
    width: 100px; /* 设置唱片图片的宽度 */
    height: 100px; /* 设置唱片图片的高度 */
    border-radius: 50%; /* 将图片设置为圆形 */
    transition: transform 0.3s ease; /* 添加过渡效果，使旋转更平滑 */
   
}

/* 定义旋转动画 */
@keyframes rotate {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.rotate {
    -webkit-animation: rotate 5s linear infinite;
    animation: rotate 5s linear infinite;
}